package lambdasinaction.chap5.my;

/**
 * TODO
 *
 * @author Fish
 * @since 0.0.1 2018/7/25 17:48
 */
public class MyTransaction {

  private MyTrader trader;
  private int year;
  private int value;

  public MyTransaction(MyTrader trader, int year, int value) {
    this.trader = trader;
    this.year = year;
    this.value = value;
  }

  public MyTrader getTrader() {
    return trader;
  }

  public void setTrader(MyTrader trader) {
    this.trader = trader;
  }

  public int getYear() {
    return year;
  }

  public void setYear(int year) {
    this.year = year;
  }

  public int getValue() {
    return value;
  }

  public void setValue(int value) {
    this.value = value;
  }

  @Override
  public String toString() {
    return "MyTransaction{" +
        "trader=" + trader +
        ", year=" + year +
        ", value=" + value +
        '}';
  }
}
